home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / SCSI Samples 1.0 / SCSI DriveID Sample 06⁄07 ƒ / Makefile next >
Encoding:
Makefile  |  1994-06-16  |  3.4 KB  |  133 lines  |  [TEXT/MPS ]

  1. #
  2. # SCSI DriveID Sample
  3. # Copyright © 19994, Apple Computer Inc. All rights reserved.
  4. #
  5. # This Makefile builds the SCSI Get Drive ID sample as a "fat" binary
  6. # that runs native on 68000 and Power PC systems. It requires the MPW
  7. # 3.3 distribution from the Macintosh on Risc SDK
  8. #
  9. Src                    =    ":Src:"
  10. Obj                    =    ":Obj:"
  11. PPCObjects            =                            ∂
  12.         {Obj}AsyncSCSIPresent.c.po                ∂
  13.         {Obj}SCSIDriveIDSample.c.po                ∂
  14.         {Obj}ShowAllDriveQueueElements.c.po        ∂
  15.         {Obj}ShowAllMountedVolumeNames.c.po        ∂
  16.         {Obj}ShowRegisteredSCSIDevices.c.po        ∂
  17.         {Obj}ShowSCSIDeviceIdent.c.po            ∂
  18.         {Obj}ShowSystemVolumeID.c.po
  19.  
  20. M68Objects            =                            ∂
  21.         {Obj}AsyncSCSIPresent.c.mo                ∂
  22.         {Obj}SCSIDriveIDSample.c.mo                ∂
  23.         {Obj}ShowAllDriveQueueElements.c.mo        ∂
  24.         {Obj}ShowAllMountedVolumeNames.c.mo        ∂
  25.         {Obj}ShowRegisteredSCSIDevices.c.mo        ∂
  26.         {Obj}ShowSCSIDeviceIdent.c.mo            ∂
  27.         {Obj}ShowSystemVolumeID.c.mo
  28.  
  29. #
  30. # Directory dependencies. "Everything in the {Obj} directory depends on
  31. # something in the {Src} directory." Note: you can throw away the contents
  32. # of the {Obj} directory if you want to rebuild from scratch.
  33. #
  34. {Obj}        ƒ    {Src}
  35.  
  36. #
  37. # Compiler dependencies -- common to all compilations. The idea here is that all
  38. # sources are stored in the {Src} subdirectory, and all objects and code resources
  39. # output by the linker or Rez are stored in the {Obj} subdirectory. Note that
  40. # we define MPW to simplify portability: this sample compiles under Think C, MPW
  41. # 3.3, and Macintosh on Risc (FastTrack). It has not been tested on MetroWerks.
  42. #
  43. .c.po ƒ .c                                    ∂
  44.         {Src}SCSI.h
  45.     PPCC -sym on -appleext on -d MPW        ∂
  46.         -o {TargDir}{Default}.c.po            ∂
  47.         {DepDir}{Default}.c
  48.  
  49. .c.mo ƒ .c                                    ∂
  50.         {Src}SCSI.h
  51.     C {COptions} -d MPW                        ∂
  52.         -o {TargDir}{Default}.c.mo            ∂
  53.         {DepDir}{Default}.c
  54.  
  55. #
  56. # Build the MetroWerks resources
  57. #
  58. MetroWerks ƒ                                ∂
  59.     "SCSIIDSample.µ.rsrc"
  60.         echo "MetroWerks resources created"
  61.  
  62. #
  63. # Build the application.
  64. #
  65. "SCSIDriveIDSample MPW" ƒƒ                    ∂
  66.         MakeFile                            ∂
  67.         "SCSIIDSample.µ.rsrc"                ∂
  68.         {Src}SCSIDriveIDSample.r
  69.     Rez                                        ∂
  70.         {Src}SCSIDriveIDSample.r            ∂
  71.         -append                                ∂
  72.         -t APPL                                ∂
  73.         -i "{CIncludes}"                    ∂
  74.         -i "{RIncludes}"                    ∂
  75.         -d __powerc=1                        ∂
  76.         -o {targ}
  77.  
  78. "SCSIDriveIDSample MPW" ƒƒ                    ∂
  79.         MakeFile                            ∂
  80.         {M68Objects}
  81.     Link                                    ∂
  82.         -t APPL                                ∂
  83.         {M68Objects}                        ∂
  84.         "{CLibraries}"StdCLib.o                ∂
  85.         "{Libraries}"Runtime.o                ∂
  86.         "{Libraries}"Interface.o            ∂
  87.         -o {targ}
  88.  
  89. "SCSIDriveIDSample MPW" ƒƒ                    ∂
  90.         SCSIDriveIDSample.xcoff
  91.     MakePEF                                    ∂
  92.         {deps}                                ∂
  93.         -l InterfaceLib.xcoff=InterfaceLib    ∂
  94.         -l StdCLib.xcoff=StdCLib            ∂
  95.         -o {targ}                            ∂
  96.         -ft APPL -fc '????'
  97.  
  98. "SCSIDriveIDSample.xcoff" ƒ                    ∂
  99.         MakeFile                            ∂
  100.         {PPCObjects}
  101.     PPCLink                                    ∂
  102.         {PPCObjects}                        ∂
  103.         "{PPCLibraries}"StdCLib.xcoff        ∂
  104.         "{PPCLibraries}"InterfaceLib.xcoff    ∂
  105.         "{PPCLibraries}"PPCCRuntime.o        ∂
  106.         -main main ∂
  107.         -o {targ}
  108.  
  109. #
  110. # This builds a project resource file for the
  111. # Metrowerks DR3 environment. It is also
  112. # available as a stand-alone Makefile.
  113. # Hack: MPW tries to create
  114. # "SCSIDriveIDSample.µ.rsrc.makeout", which
  115. # is longer than the maximum file name length.
  116. #
  117. "SCSIIDSample.µ.rsrc" ƒ                        ∂
  118.         MakeFile                            ∂
  119.         {Src}SCSIDriveIDSample.r
  120.     Rez                                        ∂
  121.         {Src}SCSIDriveIDSample.r            ∂
  122.         -append                                ∂
  123.         -t rsrc                                ∂
  124.         -c RSED                                ∂
  125.         -i "{CIncludes}"                    ∂
  126.         -i "{RIncludes}"                    ∂
  127.         -o {targ}
  128.     Duplicate                                ∂
  129.         "SCSIIDSample.µ.rsrc"                ∂
  130.         "SCSIDriveIDSample.µ.rsrc"
  131.  
  132.  
  133.